package com.taotao.service;

import java.lang.annotation.*;

/**
 * @author wangjin
 * @title: SWRateLimiter
 * @projectName sw-gateway
 * @description:
 * @date 2021/12/9 15:45
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface SWRateLimiter {
    /**
     * 默认qps1
     *
     * @return
     */
    double aqs() default 1;
    //接口限流的名称

    String name() default "";

    //限流之后报错提示
    String msg() default "当前访问人数过多，请稍后重试";


}
